// 添加主机
function addSSHGo(){
    name = $('#hostSSHName').val()
    ip = $('#addSSHIPaddr').val()
    user = $('#addSSHUser').val()
    passwd = $('#addSSHPasswd').val()
    port = $('#addSSHPort').val()
    $.post(
        "http://127.0.0.1:1111/main", {
            "cmd":"addhost",
            "name":name,
            "ip":ip,
            "port":port,
            "user":user,
            "passwd":passwd
        },function (data){
            if (data === "200"){
                // alert("OK")
                getssh();
            }else {
                getssh();
                alert("faild")
            }
        }
    );
}